﻿@model EUTmvc.Models.Admin.AdminAccountNewAction
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title" id="myModalLabel">Thêm tài khoản</h4>
    
</div>
@using (Html.BeginForm())
{
    <div class="modal-body">

        @Html.AntiForgeryToken()

        <div class="form-horizontal">
            @Html.ValidationSummary(true, "aaa")
             <div class="form-group">
                @Html.LabelFor(model => model.NamePerson, new { @class = "control-label col-md-4" })
                <div class="col-md-8">
                    @Html.TextBoxFor(model => model.NamePerson, new { @class = "form-control"})
                    @Html.ValidationMessageFor(model => model.NamePerson, "", new { @class= "text-danger"} )
                </div>
            </div>
             <div class="form-group">
                @Html.LabelFor(model => model.LastNamePerson, new { @class = "control-label col-md-4" })
                <div class="col-md-8">
                    @Html.TextBoxFor(model => model.LastNamePerson, new { @class = "form-control"})
                    @Html.ValidationMessageFor(model => model.LastNamePerson, "", new { @class= "text-danger"} )
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(model => model.Account, new { @class = "control-label col-md-4" })
                <div class="col-md-8">
                    @Html.TextBoxFor(model => model.Account, new { @class = "form-control"})
                    @Html.ValidationMessageFor(model => model.Account, "", new { @class= "text-danger"} )
                </div>
            </div>
            @*<div class="form-group">
                @Html.LabelFor(model => model.PassWord, new { @class = "control-label col-md-4" })
                <div class="col-md-8">
                    @Html.TextBoxFor(model => model.PassWord, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.PassWord, "", new { @class = "text-danger" })
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(model => model.ConfirmPassWord, new { @class = "control-label col-md-4" })
                <div class="col-md-8">
                    @Html.TextBoxFor(model => model.ConfirmPassWord, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.ConfirmPassWord, "", new { @class = "text-danger" })
                </div>
            </div>*@
            <div class="form-group">
                @Html.LabelFor(model => model.GroupAcountId, new { @class = "control-label col-md-4" })
                <div class="col-md-8">
                    @Html.DropDownListFor(model => model.GroupAcountId,new SelectList(Model.ListGroupAccount, "Id", "Name"),"Chọn quyền", new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.GroupAcountId, "", new { @class = "text-danger" })
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(model => model.Email, new { @class = "control-label col-md-4" })
                <div class="col-md-8">
                    @Html.TextBoxFor(model => model.Email, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.Email, "", new { @class = "text-danger" })
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(model => model.Description, new { @class = "control-label col-md-4" })
                <div class="col-md-8">
                    @Html.TextBoxFor(model => model.Description, new { @class = "form-control" })
                </div>
            </div>
        </div>

    </div>
    <div class="modal-footer">
        <button class="btn" type="button" data-dismiss="modal">Cancel</button>
        <input class="btn btn-primary" type="submit" value="Save" />
    </div>
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
